package net.godcode.olivenotes.entities;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "PostComments")
/**
 * Comment
 * 
 * @author Chris Lewis Dec 27, 2007 <chris@thegodcode.net>
 * @version $Id: PostComment.java 20 2008-01-15 07:22:45Z burningodzilla $
 */
public class PostComment extends BaseModel {
	
	private String body;
	
	@ManyToOne
	@JoinColumn(name = "post_id", nullable = false)
	private Post post;

	/**
	 * @return the body
	 */
	public String getBody() {
		return body;
	}

	/**
	 * @param body the body to set
	 */
	public void setBody(String body) {
		this.body = body;
	}

	/**
	 * @return the post
	 */
	public Post getPost() {
		return post;
	}

	/**
	 * @param post the post to set
	 */
	public void setPost(Post post) {
		this.post = post;
	}
	
}
